<template>
	<view class="logo" :style="{width:width+'rpx',height:height+'rpx'}">
		<image v-if="image" :src="image" mode="aspectFill"></image>
		<text v-else>{{text[0]}}</text>
	</view>
</template>

<script>
	export default {
		name:"wzh-textlogo",
		props: {
			image:{
				type: String,
				default: '',
			},
			text:{
				type: String,
				default: '',
			},
			width:{
				type: String,
				default: '100',
			},
			height:{
				type: String,
				default: '100',
			}
		},
		data() {
			return {
			};
		}
	}
</script>

<style lang="less">
	.logo{
		background-color: #838383;
		border-radius: 50%;
		overflow: hidden;
		
		display: flex;
		justify-content: center;
		align-items: center;
		
		image{
			width: 100%;
			height: 100%;
		}
		text{
			font-size: 60rpx;
			color: #fff;
		}
	}
</style>
